<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored ="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<title>教师管理</title>

</head>
<body>

<h2>教师管理</h2>
<p><a href="${ctx}/teacher/teacherAdd.jsp">添加教师</a></p>
<table border="1">
	<tr align="center" valign="middle">
    	<td width="166" >编号</td>
		<td width="191">姓名</td>
        <td width="215" >出生日期</td>
        <td width="111" >性别</td>
		<td width = "148">说明</td>
		<td width="220">操作</td>
	</tr>
	<c:forEach var="teacher" items="${teachers}">
		<tr>
        	<td width="166" >${teacher.teacher_id }</td>
			<td width="191">${teacher.teacher_name }</td>
            <td width="215">${teacher.teacher_birthday }</td>
            <td width="111">${ dict["sex"] [teacher ["sex"] ] }</td>
			<td width="200">${teacher.remarks }</td>
			<td width="220" align="center">
            
			<a href="${ctx}/teacher/teacher/update?teacher_id=${teacher.teacher_id}">修改</a>
			<a href="${ctx}/teacher/teacher/delete?teacher_id=${teacher.teacher_id}&teacher_name=${teacher.teacher_name}">删除</a>
			</td>
		</tr>
	</c:forEach>
</table>

</body>
</html>